package com.wyp.design.pattern.creational.builder.v1;

/**
 * @author: yipeng.wang01@hand-china.com-25490
 * @TIME: 2019/12/31/11:40
 **/
public class Touch {
    private CourseBuilder courseBuilder;

    public void setCourseBuilder(CourseBuilder courseBuilder) {
        this.courseBuilder = courseBuilder;
    }
    Course makeCourse(String courseName,String coursePPT,String courseArticle,String courseVideo){
        courseBuilder.setCourseName(courseName);
        courseBuilder.setCourseArticle(courseArticle);
        courseBuilder.setCoursePPT(coursePPT);
        courseBuilder.setCourVideo(courseVideo);
        Course course = courseBuilder.makeCourse();
        return course;
    }
}
